home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-02 | 787 b | 20 lines | [TEXT/CWIE] |
- Enclosed is the source code to a dialog(window) menubar object.
- Using the PPOB for Constructor you can add menubars to your
- window by simply creating MBARs with ResEdit, drawing them in
- Constructor and assigning the MBAR IDs to the usercon
- of the PPOB menubar object. (I hope that makes sense :-).
-
- When a menu item is selected msg_DLOGMenuBarSelection is
- broadcast with ioparam pointing to a long containing the
- return value of PopupMenuSelect (menuID/item).
-
- The code detects if the menubar is too close to the bottom of
- the screen to pop the menu down, and pops the menu up above
- the menubar.
-
- There is rudimentary code for manipulating the installed
- menubar, but, it's not done, or tested... I've simply
- created MBARs and used them, as is.
-
- Tom Kimpton - tom@jlc.com, tom@itsnet.com
-